import request from '@/utils/request'

// 查询案例类型列表
export function listCase_type(query) {
  return request({
    url: '/Management/case_type/list',
    method: 'get',
    params: query
  })
}

// 查询案例类型详细
export function getCase_type(id) {
  return request({
    url: '/Management/case_type/' + id,
    method: 'get'
  })
}

// 新增案例类型
export function addCase_type(data) {
  return request({
    url: '/Management/case_type',
    method: 'post',
    data: data
  })
}

// 修改案例类型
export function updateCase_type(data) {
  return request({
    url: '/Management/case_type',
    method: 'put',
    data: data
  })
}

// 删除案例类型
export function delCase_type(id) {
  return request({
    url: '/Management/case_type/' + id,
    method: 'delete'
  })
}
